package com.king.pattem.proxy.statics;

import com.king.pattem.proxy.service.UserService;

public class UserServiceImplProxy implements UserService {

    private UserService userService;

    public UserServiceImplProxy(UserService userService){
       this.userService = userService;
    }

    @Override
    public void addUser(String userId, String userName) {
       try {
           System.out.println("开始执行：addUser");
           userService.addUser(userId, userName);
           System.out.println("addUser执行成功。");
       } catch (Exception e) {
           System.out.println("addUser执行失败。");
       }
    }

    @Override
    public void delUser(String userId) {

    }

    @Override
    public void modifyUser(String userId, String userName) {

    }

    @Override
    public String findUser(String userId) {
       return null;
    }
}